import request from '@/utils/request'

// 查询标签
export function labelList(data) {
  return request({
    url: '/customer/lablemanager/list',
    method: 'get',
    params: data
  })
}

// 添加标签
export function addLabel(data) {
  return request({
    url: '/customer/lablemanager',
    method: 'post',
    data: data
  })
}

// 修改标签
export function updateLabel (data) {
  return request({
    url: '/customer/lablemanager',
    method: 'put',
    data: data
  })
}

// 删除标签
export function delLabel(id) {
  return request({
    url: '/customer/lablemanager/' + id,
    method: 'delete'
  })
}